package dljs.classes;

import java.util.ArrayList;

/**
 *
 * @author vova
 */
public class CSolitareCardSet implements Cloneable {    
    
    public CSolitareCardSet() {
        m_field1 = new CCard[4];
        
        m_field2 = new ArrayList[4];
        m_field2[0] = new ArrayList<CCard>();
        m_field2[1] = new ArrayList<CCard>();
        m_field2[2] = new ArrayList<CCard>();
        m_field2[3] = new ArrayList<CCard>();
        
        m_field3 = new ArrayList[8];
        m_field3[0] = new ArrayList<CCard>();
        m_field3[1] = new ArrayList<CCard>();
        m_field3[2] = new ArrayList<CCard>();
        m_field3[3] = new ArrayList<CCard>();
        m_field3[4] = new ArrayList<CCard>();
        m_field3[5] = new ArrayList<CCard>();
        m_field3[6] = new ArrayList<CCard>();
        m_field3[7] = new ArrayList<CCard>();
    }
    
    @Override
    public CSolitareCardSet clone() {
        CSolitareCardSet cloned = new CSolitareCardSet();
        
        cloned.m_field1 = m_field1.clone();
        cloned.m_field2 = m_field2.clone();
        cloned.m_field3 = m_field3.clone();
        
        return cloned;
    }
    
    public CCard m_field1[];
    public ArrayList<CCard>[] m_field2;
    public ArrayList<CCard>[] m_field3;
}